/*
 * BSM6.0
 *
 * Copyright 2012-2013 (C) SINODATA CO., LTD. All Rights Reserved.
 */
package com.sinodata.bsm.center.engine.resource.find;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * Description: 
 * </p>
 *
 * @author tangli
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * 2012-5-29 上午11:24:16          tangli         1.0         To create
 * </p>
 *
 * @since 
 * @see     
 */
public class FindResFactory {
    private static FindResFactory instance = new FindResFactory();
    private Map<Long, FindResGroup> cache = new HashMap<Long, FindResGroup>();

    /**
     * 
     */
    private FindResFactory() {
    }

    public static FindResFactory getInstance() {
        return instance;
    }

    public FindResGroup getResGroup(Long resId) {
        if (cache.containsKey(resId)) {
            return cache.get(resId);
        } else {
            FindResGroup group = new FindResGroup(resId);
            cache.put(resId, group);
            return group;
        }
    }

    public List<FindResBean> getChangedResBeans(Long resId) {
        return null;
    }

    public List<FindResBean> getChangedResBeans() {
        return null;
    }
}
